// 导请求数据的包
import request from '@/utils/request'
// zhang login 登录接口
export const loginn = (from) => request.post('/login/loginn', from, { headers: { "Content-Type": "application/json" } })
// 获取轮播图片
export const getimage = () => request.get('/admin/newsimagelocal')
// 更换轮播图片
export const changeimage = () => request.get('/admin/changeimagelocal')
// 获取未认证的校友信息
export const approval = () => request.get('/admin/approval')
// 获取已认证的校友信息
export const xinxi = () => request.get('/admin/xinxi')
// 审核校友信息
export const search = (data) => request.post('/admin/searchstu', data, { headers: { "Content-Type": "application/json" } })
// 新闻编辑上传图片的接口
export const getimg = (data) => request.post('/admin/getimage', data)
// 获取所有新闻
export const listnews = () => request.post('/admin/listnews')
// 删除新闻
export const delnews = (data) => request.post('/admin/deletenews', data, { headers: { "Content-Type": "application/json" } })
// 添加新闻(富文本)
export const addnews = (data) => request.post('/admin/addnews', data, { headers: { "Content-Type": "multipart/form-data" } })
// 服务内容的修改
export const upserve = (data) => request.post('/admin/upcontent', data, { headers: { "Content-Type": "application/json" } })
// 获取相应的服务内容
export const getserve = (data) => request.get(`/admin/serve?id=${data}`)
// 获取返校人员名单
export const showapp = () => request.get('/admin/showapp')
// 这个接口是测试用的
export const login = (data) => request.post('/api/login',data,{ headers: { "Content-Type": "application/json" } })
// 修改认证信息，如果校友信息无误，可以调用这个接口说明已经认证成功
export const upset = (data) => request.post('/admin/upset',data,{ headers: { "Content-Type": "application/json" } })
// 讲座编辑上传图片的接口
export const jiangzuoNewsshowlinewsgetimg = (data) => request.post('/admin/getimage', data)
// 添加讲座(富文本)
export const jiangzuoNewsshowlinewsaddnews = (data) => request.post('/admin/jiangzuoaddnews', data, { headers: { "Content-Type": "multipart/form-data" } })
// 获取所有讲座
export const jiangzuoNewslistnewslistnews = () => request.get('/xyh/jiangzuonewsnews')
// 删除相应讲座的信息
export const jiangzuoNewsdeletenews = (data) => request.post('/admin/jiangzuoNewsdeletenews', data, { headers: { "Content-Type": "application/json" } })

export const addstudent = (data) => request.post('/admin/addstu', data, { headers: { "Content-Type": "application/json" } })

export const addactivity = (data) => request.post('/admin/getactivityphoto', data)

export const addconactivity = (data) => request.post('/admin/addactivity', data, { headers: { "Content-Type": "application/json" } })

export const addcompany = (data) => request.post('/admin/addcompanys', data, { headers: { "Content-Type": "application/json" } })

export const getcompanys = () => request.get('/xyh/getallcompanys')
